<%@page import="henu.javaweb.dao.DaoFactory"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="../../css/bootstrap.min.css">

<title>学生信息管理系统</title>
<style>
table{
padding: 60px;
margin: 20px;
}
</style>
</head>
<body>

	<%@include file="navPage.jsp"%>
	<%
//Student s=(Student)session.getAttribute("completeStu");
//System.out.print(s);
String sn=(String)session.getAttribute("sno");
System.out.print(sno);
Student s=DaoFactory.getStudentDaoInstance().findBySno(sn);
System.out.print(s);
%>
	<div class="container">
		<table class="table table-striped table-bordered">
			<tr>
				<td>学号</td>				
				<%if(s.getS_no()!=null){ %>
				<td><%=s.getS_no() %></td>
				<%}else{ %>
				<td>无</td>
				<%} %>				
				<td>姓名</td>				
				<%if(s.getS_name()!=null){ %>
				<td><%=s.getS_name() %></td>
				<%}else{ %>
				<td>无</td>
				<%} %>		
				<td rowspan="3">照片<img src=<%= s.getS_photo()%>/></td>
			</tr>
			<tr>
				<td>曾用名</td>
				<%if(s.getS_nameUsed()!=null){ %>
				<td><%=s.getS_nameUsed() %></td>
				<%}else{ %>
				<td>无</td>
				<%} %>
				<td>姓名拼音</td>
				<%if(s.getS_spellname()!=null){ %>
				<td><%=s.getS_spellname() %></td>
				<%}else{ %>
				<td>无</td>
				<%} %>
			</tr>
			<tr>
				<td>性别</td>
				<%if(s.getS_gender()!=null){ %>
				<td><%=s.getS_gender() %></td>
				<%}else{ %>
				<td>无</td>
				<%} %>
				<td>身份证号</td>
				<%if(s.getS_IDCard()!=null){ %>
				<td><%=s.getS_IDCard() %></td>
				<%}else{ %>
				<td>无</td>
				<%} %>
			</tr>
			<tr>
				<td>出生日期</td>
				<%if(s.getS_birthdate()!=null){ %>
				<td><%=s.getS_birthdate() %></td>
				<%}else{ %>
				<td>无</td>
				<%} %>
				<td>民族</td>
				<%if(s.getS_nation()!=null){ %>
				<td colspan="2"><%=s.getS_nation() %></td>
				<%}else{ %>
				<td colspan="2">无</td>
				<%} %>
			</tr>		
			<tr>
				<td>籍贯</td>
				<%if(s.getS_nativePlace()!=null){ %>
				<td><%=s.getS_nativePlace() %></td>
				<%}else{ %>
				<td>无</td>
				<%} %>
				<td>政治面貌</td>
				<%if(s.getS_politicalStatus()!=null){ %>
				<td colspan="2"><%=s.getS_politicalStatus() %></td>
				<%}else{ %>
				<td colspan="2">无</td>
				<%} %>
			</tr>
			<tr>
				<td>联系电话</td>
				<%if(s.getS_phone()!=null){ %>
				<td><%=s.getS_phone() %></td>
				<%}else{ %>
				<td>无</td>
				<%} %>
				<td>电子邮箱</td>
				<%if(s.getS_email()!=null){ %>
				<td colspan="2"><%=s.getS_email() %></td>
				<%}else{ %>
				<td colspan="2">无</td>
				<%} %>
			</tr>
			<tr>
				<td>院系</td>				
				<%if(s.getS_faculty()!=null){ %>
				<td><%=s.getS_faculty() %></td>
				<%}else{ %>
				<td>无</td>		
				<%} %>
				<td>专业</td>				
				<%if(s.getS_major()!=null){ %>
				<td colspan="2"><%=s.getS_major()%></td>
				<%}else{ %>
				<td colspan="2">无</td>	
				<%} %>	
			</tr>
			<tr>
				<td>备注</td>
				<%if(s.getS_remarks()!=null){ %>
				<td colspan="4"><%=s.getS_remarks() %></td>
				<%}else{ %>
				<td colspan="4">无</td>
				<%} %>
			</tr>
		</table>
	</div>
</body>
</html>